﻿<%@ Page Language="C#" Debug="true" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Friends.aspx.cs" Inherits="friends" Title="Untitled Page" %>

<asp:Content ID="headContent" ContentPlaceHolderID="head" Runat="Server">
    <title>arf - Friends</title>
</asp:Content>

<asp:Content ID="sideBar" ContentPlaceHolderID="masterSideBar" Runat="Server">
    <span id="fff"><a href="feeds.aspx">feeds</a> | <a id="currentPage" href="friends.aspx">friends</a> | <a href="find.aspx">find</a></span>
    
    <div class="sideBarSubSection">
        friends:
        <br />
        <asp:GridView ID="GridView1" runat="server" 
            DataSourceID="DatabaseSqlDataSource1" ShowHeader="False" GridLines="None">
        </asp:GridView>
        
        <asp:SqlDataSource ID="DatabaseSqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:DatabaseConnectionString %>" 
            SelectCommand="SELECT [name2] FROM [Friends] WHERE ([name1] = @currUser)">
        </asp:SqlDataSource>
        
        </p>
        
    </div>
</asp:Content>


<asp:Content ID="Content3" ContentPlaceHolderID="mainBody" Runat="Server">

    <asp:SqlDataSource ID="DatabaseSqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:DatabaseConnectionString %>" 
        SelectCommand="SELECT Subscribe.URL, Feed.Title FROM Feed INNER JOIN Subscribe ON Feed.URL = Subscribe.URL WHERE (Subscribe.Name = @currFriend)"></asp:SqlDataSource>
        
    <asp:SqlDataSource ID="sdsFindPic" runat="server" 
    ConnectionString="<%$ ConnectionStrings:DatabaseConnectionString %>" 
    SelectCommand="SELECT [Picurl] FROM [User] WHERE ([Name] = @currUser)">
    </asp:SqlDataSource>
    
    <asp:GridView ID="GridView2" runat="server" ShowHeader="false" Visible="false">
    </asp:GridView>
    
    <asp:Label ID="Label1" runat="server"></asp:Label>   

  
 
        

  
        

</asp:Content>


